<template>
	<view class="footer flex-align">
		<view class="menu" @click="backUp">
			<image mode="aspectFit"
				src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/fe783a4819abeb54cfb3661048bacaf9561cc963.png">
			</image>
			<text>店铺</text>
		</view>

		<view class="menu">
			<u-button open-type="contact" :plain="true" size="large" :customStyle="{
          border: 'none',
          display: 'flex',
          flexDirection: 'column',
          alignItems: 'center',
        }" showMessageCard="true">
				<image mode="aspectFit"
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/e1e8bb5099bc4664d907e8464cd7fdab98bc3d36.png">
				</image>
				<text>客服</text>
			</u-button>
		</view>
	</view>
</template>

<script>
	const subscribe = require('@/api/subscribe/index.js')
	export default {
		name: "footer-left",
		props: {},
		data() {
			return {};
		},
		methods: {
			backUp() {
			  var that = this
			  // uni.navigateBack({ delta: 1 });
			 uni.navigateTo({
			 	url:"/pages/venues/index",
			 })
			  // uni.requestSubscribeMessage({
			  //   tmplIds: ['LVTnQXVNAhpWlg6HdmMWDF2y4tRaVj1hGHGb45lbVrk'],
			  //   success(res){
			  //     if(res.LVTnQXVNAhpWlg6HdmMWDF2y4tRaVj1hGHGb45lbVrk == "accept"){
			  //       // that.send()
			  //     }
			  //   }
			  // })
			},
			// async send(){
			//   let postParam = {
			//     touser: uni.getStorageSync('openid'),
			//     template_id: 'LVTnQXVNAhpWlg6HdmMWDF2y4tRaVj1hGHGb45lbVrk',
			//     page: '/pages/index/index',
			//     time5: '2022-12-01 01:01:01',
			//     amount1: '33.00',
			//     character_string1: '212312113123123',
			//     thing2: '22.00',
			//     thing1: '王总一路长虹阿',
			//     applet_id: this.$https.applet_id
			//   }
			//   let result = await subscribe.send(postParam)
			// },
		},
	};
</script>

<style scoped lang="scss">
	.menu {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-right: 20rpx;

		image {
			width: 35rpx;
			height: 35rpx;
		}

		text {
			color: rgb(51, 51, 51);
			font-size: 24rpx;
			font-weight: 700;
			margin-top: 13rpx;
		}
	}
</style>
